package model

type User struct {
	ID        uint      `json:"id" gorm:"primarykey"`
	Email     string    `json:"email" gorm:"type:varchar(100);uniqueIndex;comment:邮箱"`
	Phone     string    `json:"phone" gorm:"type:varchar(20);uniqueIndex;comment:手机号"`
	Password  string    `json:"-" gorm:"type:varchar(255);comment:密码"`
	Status    int       `json:"status" gorm:"type:tinyint(1);default:1;comment:状态 1:启用 0:禁用"`
	CreatedAt LocalTime `gorm:"type:datetime" json:"created_at"`
	UpdatedAt LocalTime `gorm:"type:datetime" json:"updated_at" `
}
